const app = getApp()
Page({

  data: {
    list:{},
    stockId:'',
    indicatorDots: true,
    autoplay: true,
    interval: 5000,
    duration: 1000,
  
  },
  onLoad: function (options) {
    this.setData({
      stockId:options.stockId
    })
    console.log(this.setData.stockId)
// onLoad: function (options) {
//   var that=this
//   that.setData({
//   list:options.goodId,
//   })
  
  wx.request({
    // url: app.globalData.url+'SelectAllStock',
    // data:{
    //   goodId:that.data.goodId
    // },
    success:function(res){
      that.setData({
        list: res.data,
      })
      console.log(res.data)
    }
  })
},
toshop:function(e){
  var that = this
  wx.navigateTo({
    url: '../goodsBySeller/goodsBySeller?sellerId='+that.data.goodInfoList.userId,
  })
},


})
